import { axiosInstance } from 'src/boot/axios'
import CommonConfig from 'src/assets/js/config'

const schema = CommonConfig.schemaUrl + '/v1'

// 获取企业状态
export function getOrganize () {
  const newUrl = '/tree/organize'

  return axiosInstance.get(newUrl).then((res) => {
    return Promise.resolve(res.data)
  })
}

// 列举工位 tree
export function listWorkCentersTree () {
  const url = schema + '/scheme_tree5'

  return axiosInstance.get(url).then(resp => {
    return Promise.resolve(resp.data)
  })
}
